package qq.photo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import android.app.Activity;
import android.app.ListActivity;
import android.os.Bundle;
import android.os.Environment;
import android.widget.TextView;
import android.content.*;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.SimpleAdapter.ViewBinder;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;

import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;


public class SendDialog extends Activity {
	private Button m_ShareBtn;
	private Button m_CancelBtn;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_send);
        
        ListView listView = (ListView) findViewById(R.id.listView1); 
        SendAdapter adapter=new SendAdapter(this);
        listView.setAdapter(adapter); 
        listView.setItemsCanFocus(false); 
        listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
        
        m_ShareBtn = (Button)this.findViewById(R.id.button1);
        
        m_ShareBtn.setOnClickListener( new OnClickListener(){
        	@Override
        	public void onClick(View v) {
        	// TODO Auto-generated method stub
        		Intent showNextPage_Intent=new Intent();
        		showNextPage_Intent.setClass(SendDialog.this,SendSuccessDialog.class);
        		startActivity(showNextPage_Intent);
        	}
        	}); 
        
        m_CancelBtn = (Button)this.findViewById(R.id.button2);        
        m_CancelBtn.setOnClickListener( new OnClickListener(){
        	@Override
        	public void onClick(View v) {
        	// TODO Auto-generated method stub
        		SendDialog.this.finish();
        	}
        	}); 
    }
}